package com.khyr.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.khyr.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 宋一恒
 * @version 1.0
 */
@Mapper
public interface RoleDao extends BaseMapper<Role> {

    int deleteIds(List<Long> ids);

    int saveById(Long userId, Long roleId);
    //删除用户的角色
    int deleteId(Long userId);

    int deleteMenu(Long roleId);

    int saveMenu(Long roleId, Long menuId);
}
